<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Constructs EventDnsBase object</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="eventdnsbase.clearsearch.html">EventDnsBase::clearSearch</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="eventdnsbase.countnameservers.html">EventDnsBase::countNameservers</a></div>
 <div class="up"><a href="class.eventdnsbase.html">EventDnsBase</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="eventdnsbase.construct" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">EventDnsBase::__construct</h1>
  <p class="verinfo">(PECL event &gt;= 1.2.6-beta)</p><p class="refpurpose"><span class="refname">EventDnsBase::__construct</span> &mdash; <span class="dc-title">Constructs EventDnsBase object</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-eventdnsbase.construct-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span>
   <span class="methodname"><strong>EventDnsBase::__construct</strong></span>
    ( <span class="methodparam">
    <span class="type"><a href="class.eventbase.html" class="type EventBase">EventBase</a></span>
     <code class="parameter">$base</code>
   </span>
   , <span class="methodparam">
    <span class="type">bool</span>
     <code class="parameter">$initialize</code>
   </span>
   )</div>

  <p class="para rdfs-comment">
   Constructs EventDnsBase object.
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-eventdnsbase.construct-parameters">
  <h3 class="title">参数</h3>
  <dl>

   
    <dt>

     <em><code class="parameter">base</code></em>
    </dt>

    <dd>

     <p class="para">
      Event base.
     </p>
    </dd>

   
   
    <dt>

     <em><code class="parameter">initialize</code></em>
    </dt>

    <dd>

     <p class="para">
      If the
      <em><code class="parameter">initialize</code></em>
      argument is <strong><code>TRUE</code></strong>, it tries to configure the DNS base sensibly given
      your operating system’s default. Otherwise, it leaves the event DNS
      base empty, with no nameservers or options configured. In the latter
      case DNS base should be configured manually, e.g. with
      <span class="methodname"><a href="eventdnsbase.parseresolvconf.html" class="methodname">EventDnsBase::parseResolvConf()</a></span>
      .
     </p>
    </dd>

   
  </dl>

 </div>

 <div class="refsect1 returnvalues" id="refsect1-eventdnsbase.construct-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Returns EventDnsBase object.
  </p>
 </div>

</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="eventdnsbase.clearsearch.html">EventDnsBase::clearSearch</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="eventdnsbase.countnameservers.html">EventDnsBase::countNameservers</a></div>
 <div class="up"><a href="class.eventdnsbase.html">EventDnsBase</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
